package com.climber.android.commonsdk.helper

import android.app.Activity
import android.content.Intent
import com.climber.android.commonsdk.R


/**
 * Created by mikes on 2019/1/29.
 */
fun Activity.openActivity(intent : Intent) {
    startActivity(intent)
    overridePendingTransition(R.anim.cbase__slide_in_from_right, R.anim.cbase__slide_out_to_left)
}

fun Activity.openActivityForResult(intent : Intent, requestCode : Int) {
    startActivityForResult(intent, requestCode)
    overridePendingTransition(R.anim.cbase__slide_in_from_right, R.anim.cbase__slide_out_to_left)
}